package com.efounder.util;

import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.widget.Toast;

public class AppBroadcastReceiver extends BroadcastReceiver {

	public static String msg = null;
	
	@Override
	public void onReceive(Context ct, Intent intent) {
		if(intent.getAction().equals("com.efounder.action.authorization")){   //检测
            String result = intent.getStringExtra("authorization");
            msg = result;
    		if(result !=null && result.equals("FALSE")){
    			Toast.makeText(ct, "试用版,请申请授权", Toast.LENGTH_SHORT).show();
    		}
		}	
	}

}
